all: $(FINALBIN)

install: $(FINALBIN)
	cp $(FINALBIN) $(INSTALL_FOLDER)

clean:
	rm $(OBJS) $(DEPFILES) $(FINALBIN)

# link command
$(FINALBIN) : $(OBJS)
	$(LD) $(OBJS) $(LIBS) $(LDFLAGS) $(FINALBIN)

# included files
-include $(DEPFILES)

# C source
%.o : %.c
	$(C) $(CFLAGS) -MMD -MP -MT "$*.d" -c $< -o $@

# assembly
%.o : %.asm
	$(AS) $< -o $@
